package tech.aistar.service.applyTouristService;

import org.apache.ibatis.annotations.Param;
import tech.aistar.entity.User.Register;
import tech.aistar.entity.authordis.UserTable;
import tech.aistar.entity.daoyou.GuideApply;
import tech.aistar.entity.daoyou.UserIdcard;

/**
 * Created by lenovo on 2019/10/5.
 */
public interface IApplyTouristService {
    void insert(@Param("address")String address,@Param("phone")String phone,@Param("userId")Integer userId,@Param("name")String name,@Param("birthplace")String bithplace,@Param("sex")String sex);
    UserTable findByPhone(String phone);
    void insertregister(@Param("phone")String phoneNumber,@Param("email")String email,@Param("code")String ver_code);
    Register findByCode(@Param("code") String ver_code, @Param("phone")String phoneNumber);
    UserTable findId(String phone);
    void save(@Param("userId")Integer userId,@Param("name")String name,@Param("address")String address,@Param("Birth")String Birth,@Param("IDCard")String IDCard,@Param("nation")String nation,@Param("sex")String sex);
    UserIdcard findById(Integer userId);
    GuideApply findGuideId(String name);
    void saveGuideInfo(@Param("guideId")Integer guideId,@Param("photo")String photo,@Param("profile")String profile);
    UserIdcard findUser(String name);
}
